package com.xinruke.hostels.central.manage.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jinzhi
 */
@ApiModel("楼栋修改DTO")
@Data
public class BuildingUpdateQueryDTO {

    @ApiModelProperty(value = "楼栋id", required = true)
    @NotNull(message = "楼栋id不能为空")
    private Integer id;

    /**
     * 楼栋名称
     */
    @ApiModelProperty(value = "楼栋名称", required = true)
    @NotBlank(message = "楼栋名称不能为空")
    private String mingcheng;

    /**
     * 锁号
     */
    @ApiModelProperty(value = "锁号")
    private String suohao;
    /**
     * 面积
     */
    @ApiModelProperty(value = "面积")
    private String mianji;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String beizhu;
}
